package com.koron.standard.instructionStock.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.koron.standard.instructionStock.bean.po.Instruction;
import com.koron.standard.instructionStock.bean.vo.InstructionVO;
import org.apache.ibatis.annotations.Param;

public interface InstructionMapper extends BaseMapper<Instruction> {

    Instruction getRealById(String id);

    InstructionVO getVoById(String id);

    Page<InstructionVO> selectPageVo(@Param("page") IPage<InstructionVO> page, @Param(Constants.WRAPPER) Wrapper<InstructionVO> queryWrapper);

    Integer getMaxSort();

}